package com.spring.a_01;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * <pre>
 *      HelloWorld类的测试类.
 * </pre>
 *
 * @author : resty
 * @date : 2019年07月02日    13时
 **/
public class HelloWorldTest {
    public static void main(String[] args){

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("a_01.xml");
        HelloWorld helloWorld = (HelloWorld) context.getBean("hello");
        helloWorld.say();

      /*HelloWorld hw = new HelloWorld();
      hw.say();*/
    }
}
